package ma.moliere.domaine.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import ma.moliere.domaine.IGestionDesNotesDomaine;
import ma.moliere.persistance.IGestionDesNotesPersistance;
import ma.moliere.persistance.oe.NotessaisienormalePremiere;
import ma.moliere.transverse.vo.NotessaisienormalePremiereAffichee;

@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class GestionDesNotesDomaineImpl implements IGestionDesNotesDomaine,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8329860460836774628L;
	private IGestionDesNotesPersistance persistance;

	@Transactional(readOnly = false)
	@Override
	public NotessaisienormalePremiereAffichee ajouterNotePremiere(
			NotessaisienormalePremiereAffichee note) {
		return persistance.ajouterNotePremiere(note);
	}

	@Transactional(readOnly = false)
	@Override
	public NotessaisienormalePremiereAffichee modifierNotePremiere(
			NotessaisienormalePremiereAffichee note) {
		return persistance.modifierNotePremiere(note);
	}

	@Override
	public List<NotessaisienormalePremiere> recherchernotePremiere() {
		// TODO Auto-generated method stub
		return null;
	}

	public IGestionDesNotesPersistance getPersistance() {
		return persistance;
	}

	public void setPersistance(IGestionDesNotesPersistance persistance) {
		this.persistance = persistance;
	}

	

	@Override
	public List<NotessaisienormalePremiereAffichee> rechercherNotesPremiere(
			Long idAnneescolaire, Long idClasse, Long idGroupe,
			String semestre, String evaluation) {
		
		return persistance.rechercherNotesPremiere(idAnneescolaire, idClasse, idGroupe, semestre, evaluation);
	}

}
